from typing import List
import jsonpath


class JsonpathUtil:

    @classmethod
    def get_field_by_jsonpath(cls, obj, expr) -> List:
        return jsonpath.jsonpath(obj, expr)
